/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package net.worlds.object;

import java.awt.Graphics;
import java.util.logging.Level;
import java.util.logging.Logger;
import net.worlds.WorldsException;
import net.worlds.Main;
import net.worlds.PropChangeHandler;


public class PlayerUI extends UIComponent{
    public PlayerUI() throws WorldsException
    {
        super("PlayerUI");
        //x_;
        if(!Main.noView)
            component = Main.getOverlay();
    }
    @Override
    public void addToWorld() throws WorldsException
    {
        super.addToWorld();
        try {
            if (getParent() == Main.getPlayer()) {
                componentAdded = true;
            }
        } catch (WorldsException ex) {
            throw new RuntimeException(ex);
        }
    }
    public void setPlayer()
    {
        componentAdded = true;
    }
}
